# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-theme-glacier
pkgver=0.2_git20210805
pkgrel=0
_commit="d9e2fe1f5d9ffb37fd9a9564bafdf28041d983a4"
pkgdesc="Glacier theme based on nemo-theme-default"
url="https://github.com/nemomobile-ux/nemo-theme-glacier"
arch="noarch"
license="CC-BY-SA-3.0"
source="https://github.com/nemomobile-ux/nemo-theme-glacier/archive/$_commit/nemo-theme-glacier-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

package() {
	mkdir -p \
		"$pkgdir"/usr/share/themes/glacier/meegotouch/icons \
		"$pkgdir"/usr/share/themes/glacier/fontawesome/icons \
		"$pkgdir"/usr/share/sounds/glacier/stereo

	cp icons/fontawesome/* "$pkgdir"/usr/share/themes/glacier/fontawesome/icons/
	cp icons/meegotouch/* "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/
	cp index.theme "$pkgdir"/usr/share/themes/glacier/

	cp sounds/glacier/stereo/* "$pkgdir"/usr/share/sounds/glacier/stereo/

	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-terminal.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-l-terminal.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-settings.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-l-settings.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-screenshot.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-screenshot.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-browser.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-browser.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-calculator.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-calculator.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-calendar.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-calendar.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-camera.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-camera.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-clock.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-clock.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-email.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-email.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-gallery.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-gallery.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-music.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-mediaplayer.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-conversation.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-messaging.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-notes.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-notes.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-documents.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-office.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-contacts.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-people.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-dialer.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-phone.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-settings.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-settings.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-terminal.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-shell.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-packages.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-store.png
	ln -sf "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-app-weather.png "$pkgdir"/usr/share/themes/glacier/meegotouch/icons/icon-launcher-weather.png
}

sha512sums="
c3aee5ea8c281be6eb0872c0b55e095943ce06873b7f4ee363b94f53636ef2337e842e0c543e717ad4ce2a24678d0ab34cf76e091644aa4366ba912fd98e742e  nemo-theme-glacier-d9e2fe1f5d9ffb37fd9a9564bafdf28041d983a4.tar.gz
"
